﻿using MediatR;
using Traceability.App.Domain;
using Traceability.App.ErrorCode;

namespace Traceability.App.Api.Application.Command.Add
{
    /// <summary>
    /// 添加溯源基本信息
    /// </summary>
    public class AddTraceabilityCommand:IRequest<ApiResult<TraceabilityModel>>
    {
        /// <summary>
        /// 商品ID
        /// </summary>
        public int Pid { get; set; }
        /// <summary>
        /// 生产批次
        /// </summary>
        public string Batch { get; set; }
        /// <summary>
        /// 保质期
        /// </summary>
        public int ExpirationDate { get; set; }
        /// <summary>
        /// 生产许可证
        /// </summary>
        public string ProduceCode { get; set; }
        /// <summary>
        /// 生产企业
        /// </summary>
        public string Manufacturers { get; set; }
        /// <summary>
        /// 封面图
        /// </summary>
        public string Photo { get; set; }
        /// <summary>
        /// 信息完善度
        /// </summary>
        public int? Information_Completeness { get; set; }
    }
}
